VERSION 5.00
Object = "{E87F3F56-6776-47D2-ABDE-21BC1AE1815C}#39.0#0"; "BLacKActiveXS.ocx"
Begin VB.Form FrmPass 
   Appearance      =   0  'Flat
   BackColor       =   &H00FFFFFF&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "  Login"
   ClientHeight    =   1350
   ClientLeft      =   45
   ClientTop       =   360
   ClientWidth     =   2430
   BeginProperty Font 
      Name            =   "Century Gothic"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frm_pass.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1350
   ScaleWidth      =   2430
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox txtpass1 
      Appearance      =   0  'Flat
      Height          =   285
      IMEMode         =   3  'DISABLE
      Left            =   120
      TabIndex        =   3
      Top             =   1800
      Visible         =   0   'False
      Width           =   2175
   End
   Begin VB.TextBox TxtPass 
      Appearance      =   0  'Flat
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   120
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   195
      Width           =   2175
   End
   Begin BlacKActiveXS.VistaGlassButton cmd_cancel 
      Height          =   405
      Left            =   1320
      TabIndex        =   1
      Top             =   720
      Width           =   975
      _ExtentX        =   1720
      _ExtentY        =   714
      ButtonStyle     =   7
      ButtonTheme     =   8
      BackColor       =   14648155
      BackColorPressed=   13459258
      BackColorHover  =   16741960
      BorderColor     =   9408398
      BorderColorPressed=   6045981
      BorderColorHover=   11632444
      Caption         =   "Batal"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin BlacKActiveXS.VistaGlassButton cmd_login 
      Height          =   405
      Left            =   120
      TabIndex        =   2
      Top             =   720
      Width           =   975
      _ExtentX        =   1720
      _ExtentY        =   714
      ButtonStyle     =   7
      ButtonTheme     =   8
      BackColor       =   14648155
      BackColorPressed=   13459258
      BackColorHover  =   16741960
      BorderColor     =   9408398
      BorderColorPressed=   6045981
      BorderColorHover=   11632444
      Caption         =   "Login"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
End
Attribute VB_Name = "FrmPass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmd_cancel_Click()
Unload Me
End Sub

Private Sub cmd_login_Click()
On Error GoTo hell
Dim linestr As String
Open App.Path & "\pass.pid" For Input As #1
Line Input #1, linestr
Close #1
If TxtPass.Text = txtpass1.Text Then
 FrmBlock.ilang.Enabled = False
 FrmBlock.show
 FrmBlock.Text1.SetFocus
Else
MsgBox "Password salah", vbInformation + vbOKOnly, "Porn Blocker"
TxtPass.Text = ""
TxtPass.SetFocus
Exit Sub
End If
TxtPass.Text = ""
Unload Me
IfNoErr:
Exit Sub
hell:
 TulisError Err.Description, Err.Number, "cmd_login", Me.Name
 Resume IfNoErr

End Sub



Private Sub Form_Activate()
TxtPass.SetFocus
End Sub

Private Sub Form_Load()
Dim linestr As String
Dim pass As String
Open App.Path & "\pass.pid" For Input As #1
Line Input #1, linestr
Close #1
txtpass1.Text = linestr
pass = DecryptText(txtpass1, "pass")
txtpass1.Text = pass
End Sub

